package org.apache.tomcat.util.file;

/**
 * 配置文件加载
 *
 * @author chentudong
 * @date 2024/2/19 15:58
 * @since 1.0
 */
public class ConfigFileLoader {

  private static ConfigurationSource source;

  public static ConfigurationSource getSource() {
    return source == null ? ConfigurationSource.DEFAULT : source;
  }

  public static void setSource(ConfigurationSource source){
    if(ConfigFileLoader.source == null){
      ConfigFileLoader.source = source;
    }
  }
}
